
import twilltestlib
import twilltestserver

def setup(package):
    twilltestlib.cd_testdir()
    twilltestlib.run_server(twilltestserver.create_publisher)
    print "started server"
    url = twilltestlib.get_url()
    
    from twill.commands import go, find
    
    go(url)
    find("These are the twill tests")

def teardown(package):
    twilltestlib.kill_server()
    print "killed server"
    twilltestlib.pop_testdir()
